Loading...
 

Code example: Invert - OList

With button b1, the persons currently selected in the object box box1 are inserted into the collection employees of another object (whereby the back reference superObjects is set in the person object). If you want to see the data of a certain person in more detail, double-click on the corresponding line to trigger the display of the object in the window. The selection status should not be changed by this.

OList(box1, SELECT_MULTIPLE, . . .) [ INITIALIZE: // P e r s o n [ "CX_PERSON::title", 0, COLOR BLUE ] SetFormat [ "CX_PERSON::name", 87, COLOR LIGHTBLUE ] SetFormat [ "CX_PERSON::firstName", 230, COLOR BLUE ] SetFormat DOUBLE_CLICK: GetObject Dup // das Objekt 2-fach auf den Stack Invert // Auswahlstatus wiederherstellen FillWindow // Daten im Window zeigen ] Button(b1, . . . ) [ SELECT: GetObjectsSelected enterprise // die selektierten Objekte, Zielobjekt Insert(employees, superObjects) // in die Collection einfügen ]